PGetMasterPageName

Gets the current name of the master page associated with the specified page ID.


Query constructor

PGetMasterPageName(unsigned long nPageID);

unsigned long nPageID;

PageMaker internal ID for master page


Query results

This query returns a C string containing the name of specified master page.
Page ID stays with page. While the name of a master page may change (if you rename it), its ID remains the same: A master page is independent of its name. If you assign private data to a master page and the page is subsequently renumbered, you can still access the private data using the page ID. (Assigning private data to a master page is one of the few instances where you need the ID of a master page.)

To change the name of a master page, use the PRenameMasterPage command.

PGetMasterPageName mpName(15);
strcpy(foo, mpName);


See also

The PGetMasterPage, PGetMasterPageInfo, and PGetMasterPageList queries

The PDefineMasterPage, PDeleteMasterPage, PMasterPage, and PSaveAsMasterPage commands


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support